package com.xjy.rpc.bean;

import lombok.Data;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @description: TODO 注册时区分服务的实体类
 * @author XJY
 * @date 2024/10/28 10:14
 * @version 1.0
 */
@Data
public class ServiceCount {

    private String serviceName;

    private String[] ips;

    private Integer[] ports;

    private Integer count;

    public ServiceCount(){}

    public ServiceCount(String serviceName, String[] ips, Integer[] ports, Integer count) {
        this.serviceName = serviceName;
        this.ips = ips;
        this.ports = ports;
        this.count = count;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String[] getIps() {
        return ips;
    }

    public void setIps(String[] ips) {
        this.ips = ips;
    }

    public Integer[] getPorts() {
        return ports;
    }

    public void setPorts(Integer[] ports) {
        this.ports = ports;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
